import Vue from "vue";
import App from "./App.vue";
import router from "./router";

/** ElementUI 按需导入,在plugins文件夹下的element里追个导入 */

import "./plugins/element.js";

/** ElementUI 直接引入整个项目 */

// import ElementUI from 'element-ui';
// Vue.use(ElementUI)

// 样式引入
import "element-ui/lib/theme-chalk/index.css";

/**
 *
 *
 */

// publish2npm the package's usage
import FieldSets from "./components/FieldSets/index.js";
// import 'feild-sets/styles/index.css'
Vue.use(FieldSets);

/**
 *
 *
 */

// myself component  引入的是组件方法
import notice from "@/components/MyselfComponent/index.js";
// 挂载到Vue原型上
Vue.prototype.$notice = notice;

/**
 *
 *
 */

Vue.config.productionTip = false;

document.title = "vue.extend-usage";

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
